package com.beyond.pm.ext

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.Dp

/**
 * @author chen
 * @time 2023/6/12 13:17
 * @name ProjectManage
 * @class describe
 */
@Composable
fun Dp.toPx(): Float {
 val density = LocalDensity.current.density
 return this.value * density
}